package com.xiepxcc.annotation.base.vo;

import com.xiepxcc.annotation.base.validtor.group.GroupOne;
import com.xiepxcc.annotation.base.validtor.group.GroupTwo;

import javax.validation.constraints.NotNull;

public class AccountVO {

    @NotNull(message = "id is  null",groups = {GroupTwo.class})
    private int id;

    @NotNull(message = "name is  null",groups = {GroupOne.class})
    private String name;

    private String pass;


    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPass() {
        return pass;
    }

    public void setPass(String pass) {
        this.pass = pass;
    }
}
